{include file="header.tpl"}
	<div id="stories">
		<div id="header">
			<div id="title">
				<h1>{$page_title}</h1>
					{$sub_title}
			</div>
	
			<div id="subheader">
			</div>
		</div>
		<div id="content">
			<h2>Posts</h2>
			{if $error }
				<b>Error:</b> {$error}
			{elseif $posts}
			  	{foreach from=$posts->stream item=post}
				<div class="post">
					<div class="icon">{if $post->icon}<img src="{$post->icon}" alt=""/>{else}&#160;{/if}</div>
					<div class="details">
						<a href="{$post->url|escape:'html'}" class="title">{$post->title|escape:'html'}</a><br/>
						<em>{$post->created_at_relative} {if $post->comments > 0} / {$post->comments}{/if}</em>
					</div>
				</div>
				{/foreach}
			{/if}
		</div>
		<div id="footer">
			<span style="float:left;">&nbsp;</span>
			<span style="float:right;">
				&copy; 1974 - {$smarty.now|date_format:"%Y"} 
				<a href="http://sneaker.nl" target="_blank">tech by sneaker.nl</a>
			</span>
		</div>
	</div>
{include file="footer.tpl"}